﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PTTK_HTTT_06.DAO;
using System.Data;

namespace PTTK_HTTT_06.BUS
{
    public class NGUYEN_LIEU
    {
        public int MaNguyenLieu { get; set; }
        public string TenNguyenLieu { get; set; }
        public int SoLuongTon { get; set; }
        public int MaDonViTinh { get; set; }
        public bool LoaiNguyenLieu { get; set; }
        public int HanSuDungToiDa { get; set; }

        public static List<NGUYEN_LIEU> LayDanhSach()
        {
            return NGUYEN_LIEU_DB.LayDanhSach();
        }
        public int MaNL { get; set; }
        public string TenNL { get; set; }
        public int MaDVT { get; set; }
        public bool LoaiNL { get; set; }

        public static void ThemNguyenLieu(NGUYEN_LIEU _NL)
        {
            NGUYEN_LIEU_DB.ThemNguyenLieu(_NL);
        }

        public static DataTable LayDSTenNguyenLieu()
        {
            return NGUYEN_LIEU_DB.LayDSTenNguyenLieu();
        }
    }
}
